Assignment #14 MoreVariablesAndPrinting
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: MoreVariablesAndPrinting
/// File Name.MoreVariablesAndPrinting.java
/// Date Finished 9/22/2015
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Height, Weight;
double kilosWeight, centimetersHeight;
Name = " Lacey J. Reese";
Age = 17; // almost 18/ SENIORR
Height = 63; //inches
Weight = 110; //pounds
Eyes = "Blue";
Teeth = "White";
Hair = " Blonde";
kilosWeight = Weight * 0.453592;
centimetersHeight = Height * 2.54;
System.out.println( "Let's talk about " + Name + "." );
System.out.println( " She's " + Height + " inches tall." + "( In centimeters) " + centimetersHeight + " " + " centimeters." );
System.out.println( " She's " + Weight + " pounds." + "( In kilograms) " + kilosWeight + " " + "Kilograms." );
System.out.println( " Im not that heavy." );
System.out.println( " She's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( " Her teeth are usually " + Teeth + " depending on if she drinks red kool aid." );
// This line is tricky; try to get it exactly right.
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
+ " I get " + (Age + Height + Weight) + "." );
}
}
Picture of the output
// very complicated BUT I GOT IT!!!